package v1

import "quipus/internal/utils"

func ExtractTokenFromUrn(prefix string, name string) (string, error) {
	tokens, err := utils.GetUrnParentTokens(name, prefix)
	if err != nil {
		return "", err
	}

	return tokens[0], nil
}
